/**
 * Created by chenliang on 2017/3/20.
 */
$(document).ready(function () {
    $("#btn1").click(function () {
        $("#test").load("file/name.txt", function (responseTxt, statusTxt, xhr) {
            if(statusTxt == "success")
            {
                alert("内容加载成功");
            }
            else
            {
                alert("Error" + responseTxt + statusTxt + xhr);
            }
        });
        // $("#test").load("file/name.txt", function (responsetxt, statustxt, xhr) {
        //
        // })
    })
})